/*
 * @Description: Description
 * @Author: zhaojiansen
 * @Date: 2022-10-20 14:34:07
 * @LastEditors: zhaojiansen
 * @LastEditTime: 2022-10-24 15:54:15
 */
import request from '@/utils/request'

const serviceCategory = window.CONFIG.services.wecom + '/category'

// serviceCategory +
export function creatingMultimedia
(data) {
  return request({
    url: "/admin/wecom/material",
    method: 'POST',
    data
  })
}

// /admin/common/uploadFile
export function uploadInterface(data) {
  return request({
    url: "/admin/common/uploadPicture",
    method: 'POST',
    data
  })
}

export function videoInterface(data) {
  return request({
    url: "/admin/common/uploadVideo",
    method: 'POST',
    timeout: 60 * 1000 * 5,
    data
  })
}

export function uploadVideo(data) {
  return request({
    url: "/admin/operate/material/uploadVideo",
    method: 'POST',
    data
  })
}

export function audioInterface(data) {
  return request({
    url: "/admin/common/uploadAudio",
    method: 'POST',
    data
  })
}
